package com.itheima.mapper;

import com.itheima.entity.YddLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface YddLinkMapper {
    /**
     * 查询所有链接
     *
     * @return {@link List}<{@link YddLink}>
     */
    @Select("select id, title, url, des, img, type, default_data from ydd_link")
    List<YddLink> queryAllLink();
}
